package com.jiyinit.web.core.business.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * <p></p>
 * <p>
 * <PRE>
 * <BR>	修改记录
 * <BR>-----------------------------------------------
 * <BR>	修改日期			修改人			修改内容
 * </PRE>
 *
 * @author lishaochuan
 * @version 1.0
 * @date 2017/4/18 16:07
 * @since 1.0
 */
public class ResourceRequest {


    private Integer resourceId;

    /**
     * 名称
     */
    @NotBlank(message = "菜单名称不能为空")
    private String resourceName;

    /**
     * 1菜单;2功能;3:其它
     */
    @NotNull(message = "菜单类型不能为空")
    private Integer resourceType;

    /**
     * 父资源ID
     */
    @NotNull(message = "父级不能为空")
    private Integer parentId;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    private Integer resourceOrderBy;

    /**
     * 链接
     */
    @NotBlank(message = "链接不能为空")
    private String resourceUrl;

    /**
     * 样式
     */
    private String resourceStyle;

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public Integer getResourceType() {
        return resourceType;
    }

    public void setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getResourceOrderBy() {
        return resourceOrderBy;
    }

    public void setResourceOrderBy(Integer resourceOrderBy) {
        this.resourceOrderBy = resourceOrderBy;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public String getResourceStyle() {
        return resourceStyle;
    }

    public void setResourceStyle(String resourceStyle) {
        this.resourceStyle = resourceStyle;
    }
}
